import 'package:get/get.dart';

class MyProductController extends GetxController {
  var count = 0.obs;

  var myProductList = <MyProduct>[
    MyProduct(name: 'Product 1', description: 'Description 1', price: 10.0),
    MyProduct(name: 'Product 2', description: 'Description 2', price: 20.0),
    MyProduct(name: 'Product 3', description: 'Description 3', price: 30.0),
  ].obs;

  void addProduct(MyProduct product) {
    myProductList.add(product);
  }

  void removeProduct(MyProduct product) {
    myProductList.remove(product);
  }

  addCount() {
    count.value++;
  }
}

class MyProduct {
  final String name;
  final String description;
  final double price;

  MyProduct({required this.name, required this.description, required this.price});
}
